This paper discusses the influence on the oxidation number of each sulfur atom when the charge possesses different position in thiosulfate,polythionate and so on.
Carbon is reduced, going from an oxidation number of plus 4 to 0, and oxygen goes from negative 2 to 0, meaning that oxygen is oxidized. It can happen!